namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class NavMap : ClassMap<NavDataModel>
    {
        public NavMap()
        {
            this.Table("Nav");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("NavID").Default(-1);
            this.Map(x => x.InheritPermissions).Not.Nullable().Column("InheritPermissions");
            this.Map(x => x.NavOrder).Not.Nullable().Column("NavOrder");
            this.Map(x => x.ParentId).Nullable().Column("ParentID").Default(null);
            this.Map(x => x.TemplateId).Nullable().Column("TemplateID").Default(null);
        }
    }
}